-
Notifications
You must be signed in to change notification settings - Fork 90
Remove support for servicemanager and eventmanager v2 #211
Conversation
|
... and also zend-eventmanager v2. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great stuff, however there are couple BC concerns.
| public function __construct() | ||
| { | ||
| $r = new ReflectionClass(ServiceLocatorInterface::class); | ||
| if ($r->hasMethod('build')) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
breaking change, high chance someone still uses those compatibility aliases
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Xerkus you have right. That's why I add aliases into $defaultServiceConfig property (above)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed
| * | ||
| * @return void | ||
| */ | ||
| private function injectV3Aliases() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
breaking change, high chance someone still uses those compatibility aliases
zend-servicemanager v2 support is dropped in v3 so we can remove tone of code...